[#import "/framework/JGP.htm"  as JGP]
<!--
项目   Bsm
作者   fdp
时间   2018/7/23
-->
[@JGP.head "Title"/]
[@JGP.body]
<jgp-div _row="['8','*','*']" _aux="false">
    <jgp-div slot="1-1" _col="['*','*','*','*']" _runit="px" _aux="false">
        <jgp-query slot="1-1" _target="grid" _id="query" _auto="false" _page_size="6">


        </jgp-query>

    </jgp-div>
    <jgp-grid _id="grid" slot="2-1"
              _index="true"></jgp-grid>

    <jgp-btn slot="3-1" _fn="checkedUsers" _margin="5" >确认勾选</jgp-btn>

</jgp-div>
[/@JGP.body]
[@JGP.foot]
<script>
    //页面渲染完成之后调用,列表初始化
    JGP.$onload(search())
    //手动搜索-->
    function search() {
        JGP.query('query').searchTo('/glMeeting/participantsApiController/queryParticipants', function () {
        }, function () {
        });
    }



    //确认勾选
    function  checkedUsers(result) {

        var users=JGP.grid('grid').getSelected();//不是users对象
        var usersID = new Array();
        for (var i=0;i<users.length;i++) {
            usersID.push(users[i].id)
        }
        usersID=usersID+"";

        JGP.$close(usersID)

        //window.parent.pers = usersID

    }



</script>
[/@JGP.foot]